﻿<UserControl x:Class="HomeUX.ClientApp.MediaControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:HomeUX.Controls;assembly=HomeUX.ClientLibrary"
    xmlns:m="clr-namespace:HomeUX.MusicClientLibrary;assembly=HomeUX.MusicClientLibrary"
    xmlns:local="clr-namespace:HomeUX.ClientApp"
    Width="395" Height="530" IsTabStop="False">
    <Grid x:Name="LayoutRoot">
        
        <c:TouchTabStrip x:Name="TheTouchTabStrip" VerticalAlignment="Top" Height="60" Margin="5,0,5,0" SelectedItemData="TheTiVoControl" TabBottomSeparatorIsSuppressed="True" SelectedItemDataChanged="TheTouchTabStrip_SelectedItemDataChanged">
            <TextBlock Tag="TheTiVoControl" Width="60">TiVo</TextBlock>
            <TextBlock Tag="TheXboxControl" Width="60">Xbox</TextBlock>
            <TextBlock Tag="TheMusicControl" Width="60">Music</TextBlock>
            <TextBlock Tag="TheDvdControl" Width="60">DVD/CD</TextBlock>
            <TextBlock Tag="TheVcrControl" Width="60">VCR</TextBlock>
        </c:TouchTabStrip>
        
        <Grid Margin="0,60,0,0" Background="#FFFFA0">
            
            <Grid.Clip>
                <RectangleGeometry Rect="0,0,395,460" RadiusX="5" RadiusY="5" />
            </Grid.Clip>
            <Grid VerticalAlignment="Top" Height="55">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0" Color="Yellow" />
                        <GradientStop Offset="0.5" Color="#FFFF80" />
                        <GradientStop Offset="1" Color="#FFFFA0" />
                    </LinearGradientBrush>
                </Grid.Background>
            </Grid>
			<!-- for design-time purposes, one of the following can be set to Visibility="Visible" -->
            <local:McTivo x:Name="TheTiVoControl" Visibility="Visible" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <local:McXbox x:Name="TheXboxControl" Visibility="Visible" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
			<m:MusicController x:Name="TheMusicControl" Visibility="Collapsed" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" IsNowPlayingMode="True" SyncPath="Music Server"
                               BrowseArtistsButtonClick="TheMusicControl_BrowseArtistsButtonClick" SearchButtonClick="TheMusicControl_SearchButtonClick"
                               ViewThisArtistButtonClick="TheMusicControl_ViewThisArtistButtonClick" ViewThisAlbumButtonClick="TheMusicControl_ViewThisAlbumButtonClick"
                               ViewNowPlayingButtonClick="TheMusicControl_ViewNowPlayingButtonClick" ViewQueueButtonClick="TheMusicControl_ViewQueueButtonClick" />
            <local:McDvd x:Name="TheDvdControl" Visibility="Collapsed" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <local:McVcr x:Name="TheVcrControl" Visibility="Collapsed" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
        </Grid>

    </Grid>

</UserControl>


